(global.webpackJsonp = global.webpackJsonp || []).push([["pages/cats/cats"], {
  "0da0": function(t, e, i) {
      var s = i("8df9");
      i.n(s).a
  },
  4138 : function(t, e, i) {
      var s = function() {
          var t = this;
          t.$createElement;
          t._self._c
      },
      a = [];
      i.d(e, "a",
      function() {
          return s
      }),
      i.d(e, "b",
      function() {
          return a
      })
  },
  "8df9": function(t, e, i) {},
  ab0c: function(t, e, i) {
      i.r(e);
      var s = i("4138"),
      a = i("f1f0");
      for (var n in a)"default" !== n &&
      function(t) {
          i.d(e, t,
          function() {
              return a[t]
          })
      } (n);
      i("0da0");
      var c = i("2877"),
      r = Object(c.a)(a.
  default, s.a, s.b, !1, null, "1cd4ba90", null);
      e.
  default = r.exports
  },
  ae58: function(t, e) {
      t.exports = require("../siteinfo.js")
  },
  b205: function(t, e, i) { (function(t) {
          function s(t) {
              return t && t.__esModule ? t: {
              default:
                  t
              }
          }
          function a(t, e, i, s, a, n, c) {
              try {
                  var r = t[n](c),
                  o = r.value
              } catch(t) {
                  return void i(t)
              }
              r.done ? e(o) : Promise.resolve(o).then(s, a)
          }
          function n(t) {
              return function() {
                  var e = this,
                  i = arguments;
                  return new Promise(function(s, n) {
                      function c(t) {
                          a(o, s, n, c, r, "next", t)
                      }
                      function r(t) {
                          a(o, s, n, c, r, "throw", t)
                      }
                      var o = t.apply(e, i);
                      c(void 0)
                  })
              }
          }
          function c(t) {
              return l(t) || o(t) || r()
          }
          function r() {
              throw new TypeError("Invalid attempt to spread non-iterable instance")
          }
          function o(t) {
              if (Symbol.iterator in Object(t) || "[object Arguments]" === Object.prototype.toString.call(t)) return Array.from(t)
          }
          function l(t) {
              if (Array.isArray(t)) {
                  for (var e = 0,
                  i = new Array(t.length); e < t.length; e++) i[e] = t[e];
                  return i
              }
          }
          function h(t, e) {
              var i = Object.keys(t);
              if (Object.getOwnPropertySymbols) {
                  var s = Object.getOwnPropertySymbols(t);
                  e && (s = s.filter(function(e) {
                      return Object.getOwnPropertyDescriptor(t, e).enumerable
                  })),
                  i.push.apply(i, s)
              }
              return i
          }
          function d(t, e, i) {
              return e in t ? Object.defineProperty(t, e, {
                  value: i,
                  enumerable: !0,
                  configurable: !0,
                  writable: !0
              }) : t[e] = i,
              t
          }
          Object.defineProperty(e, "__esModule", {
              value: !0
          }),
          e.
      default = void 0;
          var u = s(i("a34a")),
          _ = i("2f62"),
          f = s(i("7ab7")),
          g = {
              components: {
                  "app-search-for": function() {
                      return i.e("components/page-component/app-search-for/app-search-for").then(i.bind(null, "73f4"))
                  },
                  "style-one": function() {
                      return i.e("pages/cats/style-one").then(i.bind(null, "5ec4"))
                  },
                  "style-two": function() {
                      return i.e("pages/cats/style-two").then(i.bind(null, "1380"))
                  },
                  "style-three": function() {
                      return i.e("pages/cats/style-three").then(i.bind(null, "b063"))
                  },
                  "style-four": function() {
                      return i.e("pages/cats/style-four").then(i.bind(null, "59d9"))
                  },
                  "style-five": function() {
                      return i.e("pages/cats/style-five").then(i.bind(null, "e9c1"))
                  },
                  "style-six": function() {
                      return i.e("pages/cats/style-six").then(i.bind(null, "d582"))
                  },
                  "style-seven": function() {
                      return i.e("pages/cats/style-seven").then(i.bind(null, "97f2"))
                  },
                  "style-eight": function() {
                      return i.e("pages/cats/style-eight").then(i.bind(null, "5d08"))
                  },
                  "style-nine": function() {
                      return i.e("pages/cats/style-nine").then(i.bind(null, "7c2b"))
                  },
                  "style-ten": function() {
                      return i.e("pages/cats/style-ten").then(i.bind(null, "d3c3"))
                  },
                  "style-eleven": function() {
                      return i.e("pages/cats/style-eleven").then(i.bind(null, "262a"))
                  },
                  "app-attr": function() {
                      return i.e("components/page-component/app-attr/app-attr").then(i.bind(null, "d3c4"))
                  }
              },
              data: function() {
                  return {
                      search_bool: !0,
                      list: [],
                      goods: [],
                      request: !0,
                      page: 1,
                      classId: 0,
                      activeIndex: 0,
                      activeIndexTwo: 0,
                      over: !1,
                      scrollHeight: 0,
                      tabbarbool: !0,
                      cat_id: 0,
                      cat_ids: [],
                      againLower: !0,
                      goods_list: [],
                      page_count: 1,
                      select_cat_id: 0,
                      first_id: 0,
                      loading: !1,
                      selectAttr: {},
                      previewUrl: "",
                      submitUrl: "",
                      show: 0,
                      attrGroup: [],
                      item: {}
                  }
              },
              computed: function(t) {
                  for (var e = 1; e < arguments.length; e++) {
                      var i = null != arguments[e] ? arguments[e] : {};
                      e % 2 ? h(i, !0).forEach(function(e) {
                          d(t, e, i[e])
                      }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : h(i).forEach(function(e) {
                          Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e))
                      })
                  }
                  return t
              } ({},
              (0, _.mapGetters)("mallConfig", {
                  cat_style: "getCatStyle"
              }), {},
              (0, _.mapState)("gConfig", {
                  windowHeight: function(t) {
                      return t.systemInfo.windowHeight
                  },
                  windowWidth: function(t) {
                      return t.systemInfo.windowWidth
                  }
              }), {},
              (0, _.mapGetters)("iPhoneX", {
                  botHeight: "getBotHeight"
              }), {
                  setHeight: function() {
                      var t = 0;
                      return this.tabbarbool && (t = this.botHeight),
                      this.windowHeight * (750 / this.windowWidth) - t - 88
                  }
              }),
              onReachBottom: function() {
                  var e = this;
                  "3" !== this.cat_style.cat_style && "1" !== this.cat_style.cat_style && (this.page < this.page_count ? (this.page++, this.$request({
                      url: this.$api.
                  default.goods_list,
                      method: "get",
                      data: {
                          page: this.page,
                          cat_id: this.cat_id
                      }
                  }).then(function(t) {
                      var i;
                      0 === t.code && ("8" === e.cat_style.cat_style || "5" === e.cat_style.cat_style ? e.dataProcessing(t.data.list) : (i = e.goods_list).push.apply(i, c(t.data.list)))
                  })) : t.showToast({
                      title: "暂无更多商品",
                      icon: "none"
                  }))
              },
              methods: {
                  onAttr: function(t) {
                      this.selectAttr = t
                  },
                  attr: function(t, e, i, s) {
                      this.previewUrl = t,
                      this.submitUrl = e,
                      this.attrGroup = i,
                      this.item = s,
                      this.show = Math.random()
                  },
                  route_advert: function(t) { (0, f.
                  default)({
                          open_type:
                          t.advert_open_type,
                          params: t.advert_params,
                          page_url: t.advert_url
                      })
                  },
                  active: function(t) {
                      var e = this;
                      this.page = 1,
                      this.goods_list = [],
                      this.cat_id = t.id,
                      this.select_cat_id = t.id;
                      for (var i = 0; i < this.list.length; i++) this.list[i].active !== t.active && (this.list[i].active = !1),
                      this.list[i].id === t.id && (this.list[i].active = !0);
                      this.$request({
                          url: "".concat(this.$api.
                      default.goods_list, "&page=").concat(this.page, "&cat_id=").concat(t.id)
                      }).then(function(t) {
                          0 === t.code && (e.dataProcessing(t.data.list), e.page_count = t.data.pagination.page_count)
                      })
                  },
                  req: function() {
                      var t = this;
                      this.$request({
                          url: "".concat(this.$api.
                      default.goods_list, "&page=").concat(this.page, "&cat_id=").concat(this.classId)
                      }).then(function(e) {
                          var i;
                          e.data.list.length > 0 ? "8" === t.cat_style.cat_style || "5" === t.cat_style.cat_style ? t.dataProcessing(e.data.list) : (i = t.goods).push.apply(i, c(e.data.list)) : t.over = !0
                      })
                  },
                  activeOne: function(t) {
                      var e = this;
                      this.page = 1,
                      this.activeIndexTwo = 0,
                      this.cat_id = t.id,
                      this.select_cat_id = t.id;
                      for (var i = 0; i < this.list.length; i++) this.list[i].active !== t.active && (this.list[i].active = !1),
                      this.list[i].id === t.id && (this.list[i].active = !0, this.activeIndex = i);
                      "5" === this.cat_style.cat_style && (this.goods_list = []),
                      0 === this.list[this.activeIndex].child.length ? this.$request({
                          url: "".concat(this.$api.
                      default.goods_list, "&page=").concat(this.page, "&cat_id=").concat(t.id)
                      }).then(function(i) {
                          var s = i.data,
                          a = s.list,
                          n = s.pagination;
                          "8" === e.cat_style.cat_style || "5" === e.cat_style.cat_style ? (e.goods_list = [], e.dataProcessing(a)) : e.goods_list = a,
                          e.page = 1,
                          e.cat_id = t.id,
                          e.select_cat_id = t.id,
                          e.page_count = n.page_count
                      }) : this.$request({
                          url: "".concat(this.$api.
                      default.goods_list, "&page=").concat(this.page, "&cat_id=").concat(this.list[this.activeIndex].child[0].id)
                      }).then(function(i) {
                          var s = i.data,
                          a = s.list,
                          n = s.pagination;
                          "8" === e.cat_style.cat_style || "5" === e.cat_style.cat_style ? (e.goods_list = [], e.dataProcessing(a)) : e.goods_list = a,
                          e.page = 1,
                          e.cat_id = e.list[e.activeIndex].child[0].id,
                          e.select_cat_id = t.id,
                          e.page_count = n.page_count
                      })
                  },
                  activeTwo: function() {
                      var t = n(u.
                  default.mark(function t(e, i) {
                          var s, a, n, c;
                          return u.
                      default.wrap(function(t) {
                              for (;;) switch (t.prev = t.next) {
                              case 0:
                                  return this.page = 1,
                                  this.activeIndexTwo = i,
                                  this.select_cat_id = e.id,
                                  this.cat_id = e.id,
                                  this.select_cat_id = e.id,
                                  this.goods_list = [],
                                  t.next = 8,
                                  this.$request({
                                      url: this.$api.
                                  default.goods_list,
                                      method: "get",
                                      data: {
                                          page: 1,
                                          cat_id: e.id
                                      }
                                  });
                              case 8:
                                  0 === (s = t.sent).code && (a = s.data, n = a.list, c = a.pagination, "5" === this.cat_style.cat_style ? (this.goods_list = [], this.dataProcessing(n)) : this.goods_list = n, this.page_count = c.page_count);
                              case 10:
                              case "end":
                                  return t.stop()
                              }
                          },
                          t, this)
                      }));
                      return function(e, i) {
                          return t.apply(this, arguments)
                      }
                  } (),
                  activeThree: function(t) {
                      this.cat_id = t.id,
                      this.select_cat_id = t.id;
                      for (var e = 0; e < this.list.length; e++) this.list[e].active !== t.active && (this.list[e].active = !1),
                      this.list[e].id === t.id && (this.list[e].active = !0, this.activeIndex = e)
                  },
                  catLower: function() {
                      var t = n(u.
                  default.mark(function t() {
                          var e, i, s, a;
                          return u.
                      default.wrap(function(t) {
                              for (;;) switch (t.prev = t.next) {
                              case 0:
                                  if (this.againLower) {
                                      t.next = 2;
                                      break
                                  }
                                  return t.abrupt("return");
                              case 2:
                                  return this.againLower = !1,
                                  e = this.goods_list[this.goods_list.length - 1],
                                  t.next = 6,
                                  this.$request({
                                      url: this.$api.
                                  default.cat_goods,
                                      method: "get",
                                      data: {
                                          cat_ids: JSON.stringify(this.cat_ids),
                                          cat_id: e.id,
                                          offset: e.offset
                                      }
                                  });
                              case 6:
                                  if (0 === (i = t.sent).code) {
                                      for (i.data.list[0].id === e.id && i.data.list[0].goods_list.length > 0 && ((s = this.goods_list[this.goods_list.length - 1].goods_list).push.apply(s, c(i.data.list[0].goods_list)), this.goods_list[this.goods_list.length - 1].offset = i.data.list[0].offset), a = 1; a < i.data.list.length; a++) this.goods_list.push(i.data.list[a]);
                                      this.againLower = !0
                                  }
                              case 8:
                              case "end":
                                  return t.stop()
                              }
                          },
                          t, this)
                      }));
                      return function() {
                          return t.apply(this, arguments)
                      }
                  } (),
                  activeRequest: function(t) {
                      this.goods_list = [],
                      0 !== t.child.length && this.requestCatList(t.child[0], 0)
                  },
                  requestCatList: function() {
                      var t = n(u.
                  default.mark(function t(e, i) {
                          var s, a;
                          return u.
                      default.wrap(function(t) {
                              for (;;) switch (t.prev = t.next) {
                              case 0:
                                  if (this.page = 1, this.cat_id = e.id, this.select_cat_id = e.id, this.activeIndexTwo = i, this.goods_list = [], 0 === e.child.length) {
                                      t.next = 12;
                                      break
                                  }
                                  for (this.cat_ids = [], s = 0; s < e.child.length; s++) this.cat_ids.push(e.child[s].id);
                                  return t.next = 10,
                                  this.$request({
                                      url: this.$api.
                                  default.cat_goods,
                                      method: "get",
                                      data: {
                                          cat_ids: JSON.stringify(this.cat_ids),
                                          cat_id: e.child[0].id,
                                          offset: 0
                                      }
                                  });
                              case 10:
                                  0 === (a = t.sent).code && (this.goods_list = a.data.list);
                              case 12:
                              case "end":
                                  return t.stop()
                              }
                          },
                          t, this)
                      }));
                      return function(e, i) {
                          return t.apply(this, arguments)
                      }
                  } (),
                  requestGoods: function() {
                      var t = n(u.
                  default.mark(function t(e, i) {
                          var s;
                          return u.
                      default.wrap(function(t) {
                              for (;;) switch (t.prev = t.next) {
                              case 0:
                                  return this.page = 1,
                                  this.cat_id = e.id,
                                  this.select_cat_id = e.id,
                                  this.goods_list = [],
                                  "10" === this.cat_style.cat_style && i && 0 !== this.list[i].child.length && (this.activeIndexTwo = 0, this.cat_id = this.list[i].child[0].id),
                                  t.next = 7,
                                  this.$request({
                                      url: this.$api.
                                  default.goods_list,
                                      method: "get",
                                      data: {
                                          page: this.page,
                                          cat_id: this.cat_id
                                      }
                                  });
                              case 7:
                                  0 === (s = t.sent).code && (this.goods_list = s.data.list, this.page_count = s.data.pagination.page_count);
                              case 9:
                              case "end":
                                  return t.stop()
                              }
                          },
                          t, this)
                      }));
                      return function(e, i) {
                          return t.apply(this, arguments)
                      }
                  } (),
                  lower: function() {
                      var e = n(u.
                  default.mark(function e(i) {
                          var s, a;
                          return u.
                      default.wrap(function(e) {
                              for (;;) switch (e.prev = e.next) {
                              case 0:
                                  if (! (this.page < this.page_count)) {
                                      e.next = 8;
                                      break
                                  }
                                  return this.page++,
                                  e.next = 4,
                                  this.$request({
                                      url: this.$api.
                                  default.goods_list,
                                      method: "get",
                                      data: {
                                          page: this.page,
                                          cat_id: i.id
                                      }
                                  });
                              case 4:
                                  0 === (s = e.sent).code && (a = this.goods_list).push.apply(a, c(s.data.list)),
                                  e.next = 9;
                                  break;
                              case 8:
                                  t.showToast({
                                      title:
                                      "暂无更多商品",
                                      icon: "none"
                                  });
                              case 9:
                              case "end":
                                  return e.stop()
                              }
                          },
                          e, this)
                      }));
                      return function(t) {
                          return e.apply(this, arguments)
                      }
                  } (),
                  dataProcessing: function(t) {
                      for (var e = 0; e < t.length; e += 2) e + 1 !== t.length ? this.goods_list.push([t[e], t[e + 1]]) : this.goods_list.push([t[e]])
                  },
                  requestCat: function() {
                      var t = n(u.
                  default.mark(function t(e, i) {
                          var s, a, n, c, r, o, l, h, d, _ = this;
                          return u.
                      default.wrap(function(t) {
                              for (;;) switch (t.prev = t.next) {
                              case 0:
                                  return this.loading = !1,
                                  t.next = 3,
                                  this.$request({
                                      url: this.$api.
                                  default.cat_list,
                                      method: "get",
                                      data: {
                                          cat_id: e || "",
                                          select_cat_id: i || ""
                                      }
                                  });
                              case 3:
                                  if (0 !== (s = t.sent).code) {
                                      t.next = 66;
                                      break
                                  }
                                  if (this.list = s.data.list, "2" !== this.cat_style.cat_style) {
                                      t.next = 8;
                                      break
                                  }
                                  return t.abrupt("return");
                              case 8:
                                  if ("1" !== this.cat_style.cat_style) {
                                      t.next = 12;
                                      break
                                  }
                                  return this.search_bool = !1,
                                  t.abrupt("return");
                              case 12:
                                  if ("3" !== this.cat_style.cat_style || 0 !== this.list.length) {
                                      t.next = 16;
                                      break
                                  }
                                  return this.search_bool = !1,
                                  t.abrupt("return");
                              case 16:
                                  if (!e && !i) {
                                      t.next = 44;
                                      break
                                  }
                                  if ("11" !== this.cat_style.cat_style) {
                                      t.next = 30;
                                      break
                                  }
                                  if (this.cat_ids = [], this.list.map(function(t, e) {
                                      t.active && (_.activeIndex = e)
                                  }), 0 !== this.list[this.activeIndex].child.length) {
                                      t.next = 22;
                                      break
                                  }
                                  return t.abrupt("return");
                              case 22:
                                  for (a = 0; a < this.list[this.activeIndex].child[0].child.length; a++) this.cat_ids.push(this.list[this.activeIndex].child[0].child[a].id);
                                  if (0 !== this.cat_ids.length) {
                                      t.next = 25;
                                      break
                                  }
                                  return t.abrupt("return");
                              case 25:
                                  return t.next = 27,
                                  this.$request({
                                      url: this.$api.
                                  default.cat_goods,
                                      method: "get",
                                      data: {
                                          cat_ids: JSON.stringify(this.cat_ids),
                                          cat_id: this.cat_ids[0],
                                          offset: 0
                                      }
                                  });
                              case 27:
                                  return 0 === (n = t.sent).code && (this.goods_list = n.data.list),
                                  t.abrupt("return");
                              case 30:
                                  if ("6" !== this.cat_style.cat_style && "7" !== this.cat_style.cat_style) {
                                      t.next = 33;
                                      break
                                  }
                                  return this.list.map(function(t, e) {
                                      t.active && (_.activeIndex = e)
                                  }),
                                  t.abrupt("return");
                              case 33:
                                  if (this.list.length > 0) for (c = 0; c < this.list.length; c++) this.list[c].active && (this.cat_id = this.list[c].id);
                                  if (("5" === this.cat_style.cat_style || "10" === this.cat_style.cat_style) && this.list.length > 0 && this.list[0].child.length > 0) for (r = 0; r < this.list.length; r++) this.list[r].active && (this.cat_id = this.list[r].child[0].id);
                                  if (0 !== this.list.length || "4" !== this.cat_style.cat_style) {
                                      t.next = 38;
                                      break
                                  }
                                  return this.search_bool = !1,
                                  t.abrupt("return");
                              case 38:
                                  return t.next = 40,
                                  this.$request({
                                      url: this.$api.
                                  default.goods_list,
                                      method: "get",
                                      data: {
                                          page: 1,
                                          cat_id: this.cat_id
                                      }
                                  });
                              case 40:
                                  0 === (o = t.sent).code && ("8" === this.cat_style.cat_style ? this.dataProcessing(o.data.list) : "5" === this.cat_style.cat_style ? this.dataProcessing(o.data.list) : this.goods_list = o.data.list, this.page_count = o.data.pagination.page_count, 0 === this.list.length && 0 === this.goods_list.length && (this.search_bool = !1)),
                                  t.next = 66;
                                  break;
                              case 44:
                                  if (! (this.list.length > 0)) {
                                      t.next = 65;
                                      break
                                  }
                                  if ("11" !== this.cat_style.cat_style) {
                                      t.next = 57;
                                      break
                                  }
                                  if (this.cat_ids = [], 0 !== this.list.length && 0 !== this.list[0].child.length) {
                                      t.next = 49;
                                      break
                                  }
                                  return t.abrupt("return");
                              case 49:
                                  for (l = 0; l < this.list[0].child[0].child.length; l++) this.cat_ids.push(this.list[0].child[0].child[l].id);
                                  if (0 !== this.cat_ids.length) {
                                      t.next = 52;
                                      break
                                  }
                                  return t.abrupt("return");
                              case 52:
                                  return t.next = 54,
                                  this.$request({
                                      url: this.$api.
                                  default.cat_goods,
                                      method: "get",
                                      data: {
                                          cat_ids: JSON.stringify(this.cat_ids),
                                          cat_id: this.cat_ids[0],
                                          offset: 0
                                      }
                                  });
                              case 54:
                                  return 0 === (h = t.sent).code && (this.goods_list = h.data.list),
                                  t.abrupt("return");
                              case 57:
                                  return this.cat_id = this.list[0].id,
                                  ("5" === this.cat_style.cat_style || "10" === this.cat_style.cat_style) && this.list[0].child.length > 0 && (this.cat_id = this.list[0].child[0].id),
                                  t.next = 61,
                                  this.$request({
                                      url: this.$api.
                                  default.goods_list,
                                      method: "get",
                                      data: {
                                          page: 1,
                                          cat_id: this.cat_id
                                      }
                                  });
                              case 61:
                                  0 === (d = t.sent).code && ("8" === this.cat_style.cat_style || "5" === this.cat_style.cat_style ? this.dataProcessing(d.data.list) : this.goods_list = d.data.list, this.page_count = d.data.pagination.page_count),
                                  t.next = 66;
                                  break;
                              case 65:
                                  this.search_bool = !1;
                              case 66:
                              case "end":
                                  return t.stop()
                              }
                          },
                          t, this)
                      }));
                      return function(e, i) {
                          return t.apply(this, arguments)
                      }
                  } ()
              },
              onLoad: function(t) {
                  var e = this;
                  setTimeout(function() {
                      e.tabbarbool = e.$children[0].tabbarbool
                  },
                  500),
                  this.cat_id = t.cat_id,
                  this.first_id = t.cat_id,
                  t.first_id && t.select_cat_id ? this.requestCat(t.first_id, t.select_cat_id).then(function() {
                      e.loading = !0
                  }) : !t.first_id && t.select_cat_id ? this.requestCat("", t.select_cat_id).then(function() {
                      e.loading = !0
                  }) : t.first_id || t.select_cat_id || this.requestCat(t.cat_id).then(function() {
                      e.loading = !0
                  })
              },
              onShareAppMessage: function() {
                  return this.$shareAppMessage({
                      path: "/pages/cats/cats",
                      title: this.$children[0].navigationBarTitle,
                      params: {
                          cat_id: this.first_id,
                          first_id: this.first_id,
                          select_cat_id: this.select_cat_id
                      }
                  })
              }
          };
          e.
      default = g
      }).call(this, i("543d").
  default)
  },
  f1f0: function(t, e, i) {
      i.r(e);
      var s = i("b205"),
      a = i.n(s);
      for (var n in s)"default" !== n &&
      function(t) {
          i.d(e, t,
          function() {
              return s[t]
          })
      } (n);
      e.
  default = a.a
  }
},
[["f539", "common/runtime", "common/vendor"]]]);